//
//  CommonUtils.h
//  MingShi
//
//  Created by MJiao on 15/7/1.
//  Copyright (c) 2015年 MJiao. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface CommonUtils : NSObject

/**
 *  判断string中是否包含表情
 *
 *  @param string
 *
 *  @return  是否包含表情
 */
+ (BOOL)isContainsEmoji:(NSString *)string;

/**
* 图片压缩
*/
+ (NSData *)imageWithImage:(UIImage *)image
                    scaled:(CGFloat)scale;

+ (id)serializableIdObject:(id)serialization defaultValue:(id)defaultValue ;


+(NSString *) compareCurrentTime:(NSDate*) compareDate;

/**
 *  获取应用缓存大小
 *
 *  @return 应用缓存大小
 */

+ (float)getApplicationCacheSize;

@end
